package com.yayun.merchant.domain;

import com.yayun.common.annotation.Excel;
import com.yayun.common.core.domain.BaseEntity;

/**
 * 图书分类对象 pms_category
 * 
 * @author kk
 * @date 2024-12-05
 */
public class PmsCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类id */
    private Long id;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String name;

    /** 父分类id */
    @Excel(name = "父分类id")
    private Long parentId;

    /** 层级：1->一级；2->二级 */
    @Excel(name = "层级", readConverterExp = "1=一级,2=二级")
    private Integer level;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 图标 */
    private String icon;

    /** 状态：0->禁用；1->启用 */
    @Excel(name = "状态", readConverterExp = "0=禁用,1=启用")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }

    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    public void setIcon(String icon) 
    {
        this.icon = icon;
    }

    public String getIcon() 
    {
        return icon;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return "PmsCategory{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", parentId=" + parentId +
            ", level=" + level +
            ", sort=" + sort +
            ", icon='" + icon + '\'' +
            ", status=" + status +
            '}';
    }
} 